package com.back.campus_back.mapper;


import com.back.campus_back.domain.Orders;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  订单Mapper 接口
 * </p>
 *
 * @author ${author}
 * @since 2021-04-17
 */
@Mapper
@Repository // 代表持久层
public interface OrdersMapper extends BaseMapper<Orders> {

    //获取所有的订单id
    public List getOrderGroup(@Param(value = "user_id") int user_id);

    //查询订单信息按照时间降序显示
    public List  getOrders(@Param(value = "user_id") int user_id);

    //查询所有订单
    public List findAllOrders();
}
